package com.dog.basics.bean.dto.admin.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;


@Data
@ApiModel(value = "添加文章评论")
public class ArticleCommentAddDto {

    /**
     * 评论内容
     */
    @ApiModelProperty(value = "评论内容", dataType = "String",required = true)
    @NotNull(message = "评论内容不能为空")
    @Size(min = 1,max = 2000,message = "评论内容规范长度1-2000")
    private String text;

    /**
     * 文章id
     */
    @ApiModelProperty(value = "文章id", dataType = "Long",required = true)
    @NotNull(message = "文章id不能为空")
    private Long articleId;

    /**
     *  评论标识( -1为评论文章者 , 正常标识是回复评论者)
     */
    @ApiModelProperty(value = "评论标识( -1为评论文章者 , 正常标识是回复评论者)", dataType = "Long")
    private Long articleCommentPid;

}


